# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Miles Alan <m@milesalan.com>
pkgname=foxtrotgps
pkgver=1.2.2
pkgrel=1
pkgdesc="Gtk-based GIS/GPS Mapping application that works well on small screens"
url="http://foxtrotgps.org"
arch="all"
license="GPL-2.0-only"
makedepends="intltool gtk+2.0-dev libglade-dev curl-dev
	sqlite-dev libexif-dev gpsd-dev"
options="!check" # Has no tests
subpackages="$pkgname-doc $pkgname-lang"
source="
	https://www.foxtrotgps.org/releases/foxtrotgps-$pkgver.tar.gz
	fix-timespec.patch
	"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc
	make
}

package() {
	make DESTDIR=$pkgdir PREFIX=/usr -C "$builddir" install
}

sha512sums="449fce966c1b59562c98bc01df2afcc20fad66bf5bdf8fe67fbef7cd12e5da82c4f36921fcdc8c8b6fae60b6056dfeb8a8efe8a0a61e12b600d6d03d08842a71  foxtrotgps-1.2.2.tar.gz
2f555e0f5bcb80489a8f3d23d94a40ad67730d504f36ac2f0188c9fa71c7b5e76bceaa91b02f1c4a5bf0d67381d4794b552c5e7dd0703ccc0b39956f2e11a193  fix-timespec.patch"
